package com.docker.fjk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.fjk.mapper.DockerClinicMapper;
import com.docker.fjk.domain.DockerClinic;
import com.docker.fjk.service.IDockerClinicService;

/**
 * 诊所信息维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
@Service
public class DockerClinicServiceImpl implements IDockerClinicService 
{
    @Autowired
    private DockerClinicMapper dockerClinicMapper;

    /**
     * 查询诊所信息维护
     * 
     * @param id 诊所信息维护主键
     * @return 诊所信息维护
     */
    @Override
    public DockerClinic selectDockerClinicById(Long id)
    {
        return dockerClinicMapper.selectDockerClinicById(id);
    }

    /**
     * 查询诊所信息维护列表
     * 
     * @param dockerClinic 诊所信息维护
     * @return 诊所信息维护
     */
    @Override
    public List<DockerClinic> selectDockerClinicList(DockerClinic dockerClinic)
    {
        return dockerClinicMapper.selectDockerClinicList(dockerClinic);
    }

    /**
     * 新增诊所信息维护
     * 
     * @param dockerClinic 诊所信息维护
     * @return 结果
     */
    @Override
    public int insertDockerClinic(DockerClinic dockerClinic)
    {
        return dockerClinicMapper.insertDockerClinic(dockerClinic);
    }

    /**
     * 修改诊所信息维护
     * 
     * @param dockerClinic 诊所信息维护
     * @return 结果
     */
    @Override
    public int updateDockerClinic(DockerClinic dockerClinic)
    {
        return dockerClinicMapper.updateDockerClinic(dockerClinic);
    }

    /**
     * 批量删除诊所信息维护
     * 
     * @param ids 需要删除的诊所信息维护主键
     * @return 结果
     */
    @Override
    public int deleteDockerClinicByIds(Long[] ids)
    {
        return dockerClinicMapper.deleteDockerClinicByIds(ids);
    }

    /**
     * 删除诊所信息维护信息
     * 
     * @param id 诊所信息维护主键
     * @return 结果
     */
    @Override
    public int deleteDockerClinicById(Long id)
    {
        return dockerClinicMapper.deleteDockerClinicById(id);
    }
}
